package com.spring.aop;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.spring.definition.DefinedDogBean;
import com.spring.definition.DefinedPersonBean;

public class AopMain {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(
                                                                                               "beandefine/application-aop1.xml");

        OriginalBean originalBean = (OriginalBean) applicationContext.getBean("originalBean");
        originalBean.doPrint();
        originalBean.doPlug(10);

    }
}
